<?php

if(!defined('IN_refrigeratory')) {
	exit('Access Denied');
}

$operation = $_REQUEST["operation"];
$operations = array("info_storage");

if (!in_array($operation, $operations)){
	echo '{"success":false, "info":"request params invalid"}';
	exit;
}

if ($operation == "info_storage"){
	echo get_json_from_sql("SELECT id_storage,name,location FROM t_storage ORDER BY name");
}

?>